add sample core.js, for educational purposes
implement the protocol handling and a sample module

nothing is tested and nothing works
working version of sztanpet rewrite
Merge pull request #2 from destinygg/sztanpetplayground

event based rewrite