Made Template panels more generic

Still deciding on a plugin library/framework