Fixed problems that were preventing this from working in
ElasticBeanstalk, among others.
Also, added .ebextensions config file.