Updated gruntfile to generate public scripts.
Rewritten client script to coffee
Added some docs to client script