Allow templates to specify a base href.
The ticket viewer can now have a ticket specified as the hash.
Division path is simpler again.