Move base into own macro/slot, make other urls relative

There is now only one absolute url left. Unfortunately base tags
cannot take relative paths. We can hack this using JS.

This is an attempt to use less (eventually no) absolute urls, so that eventually it would not be so problematic when people want to check out only the demo.

This could possibly be completed by generating the base tag in javascript.