Added type-safe jsMode support in MapReduceCommand

JAVA-1347
Removed MapReduceCommand.addExtraOption and getExtraOptions

JAVA-1349
Added getOutputDB helper
Added test cases