use Coder from GitHub as it has a fix we need
improve the receive/queue.rb code

- fixed a Timeout::Error naming issue
- sometimes the payload is decoded, not sure why
- fix an error with exception logging
move common metriks helpers to a single module
remove unused logic from the AR models

- move the sql constant for log aggregation to the aggregation service