added spark-class and spark-executor to sbin

Signed-off-by: shane-huang <shengsheng.huang@intel.com>
add admin scripts to sbin

Signed-off-by: shane-huang <shengsheng.huang@intel.com>
moved user scripts to bin folder

Signed-off-by: shane-huang <shengsheng.huang@intel.com>
add scripts in bin

Signed-off-by: shane-huang <shengsheng.huang@intel.com>
fix path

Signed-off-by: shane-huang <shengsheng.huang@intel.com>
fix paths and change spark to use APP_MEM as application driver memory instead of SPARK_MEM, user should add application jars to SPARK_CLASSPATH

Signed-off-by: shane-huang <shengsheng.huang@intel.com>
rm bin/spark.cmd as we don't have windows test environment. Will added it later if needed

Signed-off-by: shane-huang <shengsheng.huang@intel.com>
Merge branch 'reorgscripts' into scripts-reorg
refactor $FWD variable
deprecate "spark" script and SPAKR_CLASSPATH environment variable
standard Naive Bayes classifier
Refactored NaiveBayes

* Minimized shuffle output with mapPartitions.
* Reduced RDD actions from 3 to 1.
Let reduceByKey to take care of local combine

Also refactored some heavy FP code to improve readability and reduce memory footprint.
Reformatted some lines commented by Matei
Added Apache license header to NaiveBayesSuite
Response to Reynold's comments
Response to comments from Reynold, Ameet and Evan

* Arguments renamed according to Ameet's suggestion
* Using DoubleMatrix instead of Array[Double] in computation
* Removed arguments C (kinds of label) and D (dimension of feature vector) from NaiveBayes.train()
* Replaced reduceByKey with foldByKey to avoid modifying original input data
Aggregated all sample points to driver without any shuffle
Deleted py4j jar and added to assembly dependency
Removed sbt folder and changed docs accordingly