Added frontend example of partioning. Relates to #18
Cached statistics
Added logic for partition
Updated YUIDocs