Implement registerApp

Also, I'm including a quick draft of how the settings file will look
like, what commands would probably be there. Actually started doing some
serious work here, as you can see.