Merge branch 'master' into my_master
Move the code from API to library so that the dependencies stay clean.

Conflicts:
	library/src/main/java/com/datatorrent/lib/codec/JsonStreamCodec.java
	library/src/main/java/com/datatorrent/lib/io/WidgetOutputOperator.java
Merge pull request #757 from 243826/my_master

MLHR-904 Fix the nightly build and trigger build failures