Fixed a couple of bugs and added 2 settings

Hi, I fixed a couple of bugs and added two new settings:
`"ELASTIC_IP"|Boolean, enable AWS Elastic IP support.`
`"ENV"| {VAR_ONE: val, VAR_TWO: val2, ..etc} Variables to set in the local environment before the app starts. Useful for setting up DB credentials for example.`
I hope you find them useful and add them to the main branch.
Cheers,

Matt