Resource handler

Resource handler is used instead of simply using the ```Resource``` class to generate resources from entities.

Also, entities are now added to the avocadorm recursively. Because of this, the methods to add entities do not return a count anymore.