cleaning up User class
logging error messages for exceptions caught by restful-api plugin
fixed NullPointerException when creating routes