Controllers inherit BaseController

All controllers inherit BaseController to avoid code duplication. Most
of the StyleCop warnings are fixed.