Added SSL to production. Added tests for flash