Move templates and utils to common

Signed-off-by: Michael Buesch <m@bues.ch>
Don't always import all common modules

Signed-off-by: Michael Buesch <m@bues.ch>