Add a simple dependency injection implementation and base user exception class.