Configuration: added explicit handling of internal routes (such as the homepage)
Code cleanup and unit tests