added restful stuff for assignment model.

created user model for authentication