Added User API controller and login method for authenticating user by
using REST XML communication.