Adding some base classes for controllers and services with some extensions to support inheritance