Add proper page title to error page.
Remove unnecessary class parameter from API test.
Move token generation to new Token class.
Add tests for UrlBuilder.