Hooked router cache into Play lifecycle to prevent classloader leaks in dev mode (#1409, #1402 backport)