PLA-99 changed controller to work with PandorForms
PLA-100 config added to controller, intergration with PandoraForms
PLA-99 added default type
PLA-99 changes in templates (still needs to be reviewed), some fixes