added create and update to user resource
corrected indentation at resource.pm
fixed delete function in User.pm