Improve the routing system

Add head and tail routes, avoid favicon.ico request to be processed by the routing system;