Worked on environmental functions and frustration.

I have not been able to test any of this. Please don't use or clone of
the branch at this time.
Added embeded python functions and polised events.

This was a great update! Added a lot of code and redid a lot of idea.
Please don't consider the API to be stable or frozen in any way. Hold
yer horses until I can freeze atleast some of the functions :)