Implemented the workflow for the messaging system + some controller functions and some model func
message model + views modified