Merge pull request #239 from cwc/fixes

SSL port fix, env variable for client port and sqlite path.
Change path used to load DB models
Use XHR polling