JoshAshby/Fla.gr — pull request #12 by JoshAshby (2013-06-02 21:26:50+00:00)
Title: Bucket work

What
-------
Adds a Redis ORM style system to `baseModel` as `redisObject`. This currently supports Lists, and Strings/Booleans, however the system should be easily flexible enough to add in support for sets and sorted sets and hashes, making it almost a full Redis ORM style system. Along with this, a `models/collections` has been added with a small wrapper for making a collection of `redisObjects` from a single key pattern, and sorting them by a common field.
This also moves buckets over to use this system on the admin panel, and replaces `adminBucketDict` and `adminBucketToggle` functions with the `bucketPail` collection and `bucketPail.toggle()` static function for organization. The template for the admin panel buckets page has been updated to use the new collection and `redisObjects` system.