Add base href config

Has some disadvantages (http://stackoverflow.com/q/1889076), but there
are workaround and the ease of use outweighs the disadvantages in this
case.