added pageRoutes configurability + properly export Promise
Merge pull request #207 from ryedin/master

added pageRoutes configurability + properly export Promise