decouple getModules and getActions from apiserver

- move getModules and getActions to jarvis object so that they
can be used by other commands