Much faster and lighter rails attribute serialization using json or Marshal, with gzip support