Fix occasionally failing tests
Add lazyproperty decorator
Add support for setting environment variables in bootstrap (closes #16)