Moved to a transient strategy
Removed cowboy shutdown errors by stopping listening first

and making begin_http optional. closes #54