Revisited the template layers class adding more flexibility and few new methods

Signed-off-by: emanuele <emanuele45@gmail.com>
Small tweaks to the class to improve proprity handling (I hope) and some change on how the class is initialized in some of the files

Signed-off-by: emanuele <emanuele45@gmail.com>
Ooops

Signed-off-by: emanuele <emanuele45@gmail.com>
This should fix a couple of issues with the package manager

Signed-off-by: emanuele <emanuele45@gmail.com>
Missing global in class DbTable_*

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge branch 'master' into template_layers_v2

Conflicts:
	sources/database/DbTable-mysql.php
Missing require_once when editing PM settings from the PM area (wrong branch, I know)

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #481 from emanuele45/template_layers_v2

Template layers v2