Using prototype as inheritance mechanism

Instead of using the "methods" to extend the basic controller, using just prototype directly.
I tried to make integration tests for these, but was no trivial task.