Added Chat Application

Also added function "trimWSFrontBack" to utils.js, which removes all
whitespace at the beginning and end of a string