Fixed a bug with messages being loaded into items array in controller.js
which was causing some messages to not be recieved in the new view. Also
fixed the issue where a new message coming into the room was sent twice.