Add submodule serverside api

#30 

Add server side api for submodule.


p.s. Any suggestions for the UI?  I was thinking something similar to remotes...
To make this faster you can use a local path instead, see how I do the clone test. (You'll have to create a new repo locally though, but it's pretty easy just call api/testing/createdir and api/init)