Introduce smarty, merging html to templates -> work in progress.