Make stuff protocol independent
Cleanup server code and dependencies
Merge pull request #1 from ruudud/master

HTTPS-aware and some cleanup