Simple authentication system with RESTful API