Preliminary code and test for users; untabified some files; removed IDisposable from repositories.