Add basic tool infra and complete registerTool()
#113
+139
−11
registerTool()
#113