Storage and pipelining refactor

Major refactor to remove the pipelining design since we werent actually taking advantage of it.
Also refactored the persistence code to allow easy addition of new drivers.
Added in amqp nofifyclose handling to properly shutdown amqp when a close msg is sent