You can check docs here-- there we have high-level description of architecture, resources and controllers. And also guide for testing and developing this provider locally.
DragonVale has no server-side checks for resources, so it is possible to manipulate the game client to give you any amount of resources you want. GameGuardian enables dynamic memory scanning and ...