Colinmacdonald/4 remove deprecated

Closes #4 

- removes deprecated code and refactors the usercache component accordingly.
- fixes tests to work with the refactored usercache component.