Added the CORS handler -- continued

This is hopefully the completion of PR #8 based on the feedback it got.