Refactoring main.js, adding https support. Adding subdomain and ssl to dev.json config.