Messages backend

Messages and comments back end completely done. Might be a few changes but should be basically finished.