Refactor JS code generation to use JSTemplate.

Fix multiple JS code generation bugs due to missing :foo string
substitutions.

Conditionalize a string substitution in
BaseFindElementNHandler.createGenericCriteria().

Rename DragFromToForDurationNHander to DragFromToForDurationNHandler.