Ported popup code,
added ability to select main template when using initializeTemplate.

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