Added base_url support to router

This is necessary for installations outside of the root directory.