some fixes, yet not working in AWS.
several fixes for AWS to work
redeployment problem solved.

It was not deploying because it was running out of memory despite
AWS reported it to be up and running. Sometimes it only happened
the second time, when another application was already running.

See issue #7 's comments for reference.