WIP Cartridge Refactor

* Added application_state.rb and environ.rb plus unit tests
* Added README.writing_applications.md
WIP Cartridge Refactor

* Added oo_trap_user.rb
Merge pull request #1 from jwhonce/dev/wip

Update to latest WIP