Force SSL in production. Added some new tests, removed some unnecessary files.