Add support for env variables
Fix travis build
Add timeout support, and set to 5 min by default