Use 6697 as default SSL port
Allow specifying client-side port via env
Change path used to load DB models
Use XHR polling