Catch JSON.parse error and console.log what we were trying to parse
Do not need to booleanize this
Massive refactoring + tests
Add metadata tests
Start writing complete functions for queues
Few other fixes