Refactor function analysis

Moved analyzing a function to Command()'s __init__ code.
The intended usage is introspection, i.e.
class my_app():
    def cmd_fubar(self,hello="Joe"):
	    pass
	def init_manager(self,mgr):
	    for fname in dir(self):
			if fname.startswith("cmd_"):
				cmd = Command(getattr(self,fname))
				mgr.add_command(fname[4:],cmd)