added initial version of base controller
Merge pull request #2 from janimattiellonen/generic-ctrl

added initial version of base controller