refactor a bit. create root template, check for gems, clean package control infos, prepare for binding with passenger