Simplify URL parser and always redirect to canonical URL (closes #19)