Added messaging system.
Moved setting userid javascript variable to header file.
Finished initial version of messaging system.