Wrapping flask with tornado and allowing configuring protocol and ssl options for api server