codestyle: apply codestyle to all files in notes module
Introduce helper for template handling
Helper object for view templates