Made private class members protected. Refs #106.
exception templates support per environment and context via settings.ini
A phpdoc comment a day sends doctor away. And keeps David happy.
some htmlentities()
fixed phpdoc comments
merged from trunk (up to 6917ef033c49e1753fded6e21b8987c3a2137f24)