1. Fixes #28. The bug was in the resource mapping delta calculations. Fixed it for this particular issue.
2. Added AppContext and PelletContext to the pellet api.