Refactored users resource into abstract resource object.
Cleanup of several files.