Refactors Messages Controller.
Refactors photos controller.
Refactors profiles controller.