Fix compiler warnings

* quote reserved keyword 'then'
* import scala.language.implicitConversions
Fixes #2: create base class for controllers