Allow specifying the max number of rows to return in SharkContext.sql.

Added tests for null values in sql2rdd.

Initialize logs properly in Hive for SharkContext.
Properly initialize log4j in SharkContext.