Refactors to pass api-key, data and host-url to handlers
Haha, it's built-in
Some example test for entity handlers
merged in creation branch