Complete overhaul of routing/htaccess for initial release.

Signed-off-by: Rob Marston <rob@robmarston.com>