Removed unused views and routes, fixed tests.