Remove Aftertime::get_app() method

Move the relevant code into the run_app() method. It's not
necessary anymore a function that returns the running app to the
controller
Unify Template and TemplateLog classes