Adding ssl and more configurable server for testing #302