Merge pull request #148 from harveyfeng/partition-caching

Add a new 'shark.cache.type' table property. Also included are a few comments and some small refactoring.
Add a MemoryTableDesc wrapper around a table RDD, or partition RDDs if the table is Hive-partitioned.