updating template to encode all variables
* moving template load to top of body
removing extra quotes around json encoded strings
Convert many ifs to a foreach
Refactor and centralize historical batch code
Moving purge logs out of heartbeat and into its own cron job
Grabbing logging setting from config
Add missing method
Moar logging
checkpoint
Merge pull request #17 from jirafe/jir-760-beacon-code-to-body-top

updating template to encode all variables
The Big Refactor

Batches are now processed in stages.
Fixed log messages.
Removed dead code.
Moved methods between models.
etc.
Misc fixs, now using website ids, not store ids to talk to curl model.
Fixed bug where paginator was used instead of blob.
Changed namespace
Changed my email.
fixed cron
added installer back to cron
fixed namespaces
Merge branch 'master' into moar_efficient
updated config