Some changes to enhance the lib.
Addition of the CORS stuff.