Testing this locally shows that the HTTP_ORIGIN header is expected to not be set if the call is not a CORS call. This should be fine ... just do nothing.
Turn assertion warnings on if the debug flag is set.
Turning PRESTO_DEBUG on. It seems to me this should be on for development, but I will check with @ngallagher before merging.
Merge pull request #78 from robotpony/asserts-and-CORS-fix

Asserts and cors fix
tee-hee
Actual new function name for cross origin enabling function.
Merge pull request #82 from robotpony/CORS-function-name

CORS enabling function name change
Added assertion settings and handling.
Merge branch 'master' of github.com:robotpony/Presto

Conflicts:
	lib/_config.php
Fixed assertion hooks (missing param).
Relaxed service exceptions for 200/300 class responses. Improved returned error message.
Added note for possible handling of 300 class responses in the service layer.
Added body to trace parameters (allows debugging POSTs).
Added body to JSON payload exception. Allows debugging of failed payloads.
Allows suppressing errors in php using
Cleans up built in response type handlers, centralizing registration outside of constructor.
Fixes a comment typo.
Merge pull request #84 from robotpony/silent-error

Updates presto error to allow suppressed errors
Merge branch 'master' of github.com:robotpony/Presto
Adds back testing tool symlinnks