Use BASE_URL variable for routes

Use BASE_URL variable for routes. Set this to be the same as the
value of the <base href=""> in the document.

Future: We can probably get/set this via javascript so that it's
only in one place.

Signed-off-by: Jeff Godin <jgodin@tadl.org>