Added registerRoutes method

I took the routes iteration from your example and put it into a separate method, to allow for easier route registration. Also, I added `app` as an optional parameter to `exposeRoutes` which will automatically call `registerRoutes`.  This allows for maximum flexibility.