RESTful API for users; refactored. Extensible enough now to expand to additional models