Initial checkin, basic mongo and mysql support

Compression done, rotation still to do