Changed enviroment detection method to allow for domains and hostnames
Statement generator now submits
Add true
A temp fix to allow empty result / context

This is a temp hack until the new validator
(https://github.com/LearningLocker/xAPIValidator) is ready to use.