Added errors.php
added JSON output for mySQLcon class
changed index.php (json+numeric error codes)
removed unnecessary debug code from index.php