Replace custom CORS middleware with library.

Resolves #20