Fixing Bugs in Writting

The X of 500 characters used was not working - this is fixed. User will
also be warned at 400 characters and messages over 500 characters cannot
be submitted.
Changed Datasources so proper user ID will be passed
Merge branch 'master' of https://github.com/num18s/localChat