Added register API function

Really just need a way to automatically hook into routes at start up.
Not sure if I can do that though.