Cors specific and Cookie auth tests added.

Added tests testing CORS functionality specifically. Also included some cookie auth tests with and without CORS. Added some additional utility functions to help with enabling/disabling CORS on server, and also setting up and tearing down Admin and regular users.