refactoring core

to make local testing with purity more flexible and logically consistent
major refactor (partial)
major refactor (cont.) (partial)
major refactor (cont.)
major refactor (cont.) (partial)
major refactor (cont.)
fix major refactoring bugs
fix host bug not holding on to endpoints
minor changes to testing
minor testing changes
tidy up
tidy up
update eventable ref
fix readme
Merge pull request #7 from 0xor1/dev

dev -> master