Adds in some more configuration and SSL support

Added in a few extra config params along with the ability to support SSL with a user provided PEM file.