Issue #67, added all CORS headers
Implemented a better pnh configuration interface