Integrate ActiveJob / DeliverLater / GlobalID with Rails

WIP.
Did a search for $BUFFER and replaced with Thread.current[:ajbuffer]