Fixed bugs from server upgrade.

Conflicts:
	library/Braintacle/SchemaManager.php
	schema/ocs_hardware.xml
Fixed possible XSS.