Fixed template.php

Signed-off-by: Alexander Kastius <alexander.kastius@student.hpi.uni-potsdam.de>
Merge branch 'racktables-html5' of https://github.com/acidix/racktables into racktables-html5
Fixed map function.
Added debug-generator.

Signed-off-by: Alexander Kastius <alexander.kastius@student.hpi.uni-potsdam.de>