Added nginx SSL support. Made more modular. Ready to test.