Fixed messages controller, changed messages routes to use shallow routes