Changing the routing method to be sub-modules for the different types

Addition for the registration through the API

Most of the javascript files have been commented but there are still a few that remain to be done.

New API details can still be found by going to the route of the install base.

Signed-off-by: Matthew Potter <mdpotter@gmail.com>