Bug fix for query result plus more examples

Changes to the sample console app.

Fixed processing the query result and added new examples:
1. Loop through query results using a dynamic object
2. Create an account using a dynamic object
3. Create a contact that belongs to the account