got rid of loadbalancer hack, added server config for aws and tweaked https settings