API changes: added PUT

Added PUT functionality for the /device resource.  Fixed the PUT
functionality for the /user resource.