Cleaning up routing and cookies