Refactor destroyUponCollision function.

- Use a logging string to reformat debug messages.
- Remove unused debugging code.
Add debugging code to output exit signals
Add consume slot to consumer
Revert "Add debugging code to output exit signals"

This reverts commit 21a86782d2e9a3775d5cc82dbf321853e317dc97.
Revert "Revert "Add debugging code to output exit signals""

This reverts commit 2b6a72248b942cd4a3249759f716b2c05ef3706c.
Revert "Add consume slot to consumer"

This reverts commit fabbfe2554057025c187394c84fbb7f2e0a9f23a.
Add consume slot to consumer
Add consume slot to consumer.

- Allows QML to call consume
Whitespace.
Refactor helper.js
Connect qml signals
Add signals to main.qml file
Add slots in Consumer class.
Make consumeSlot invokable.
Use strict functions
Format helper.js for jslint
Remove unused slots.
Fix typo
Set context for consume slot to be invokable.
Change QVariant to be const