Decoupling ember with the prerender code, adding a new event to handle page transitions