Added Gruntfile to run test on both sides.
Implements toObject for user model.
Changed test script to use grunt.