Fix the race condition between program stop and program status check and start.
- They should be using the same way to check if a program is running

Also some code refactoring to make the code cleaner
Plus a concurrency bug fix in getting program status for MR in workflow
Use future to carry the workflow client result instead.
fix checkstyle issue.
Added cdap-security-service back to pom.xml
Merge pull request #488 from caskdata/feature/fix-easy-fail-test

Fix the race condition between program stop and program status check and start.
(CDAP-329) Upgrade to netty-http 0.5.0
Upgrade netty-http version in examples.
Merge pull request #482 from caskdata/feature/upgrade-netty-htp-0.5.0

(CDAP-329) Upgrade to netty-http 0.5.0
Merge pull request #490 from caskdata/feature/add-security-service

Added cdap-security-service back to pom.xml
(CDAP-331) Allows more flexibility on the data type for consuming from stream using MapReduce
- Added auto-detection based on Mapper/Reducer input type to support Text or BytesWritable to carry stream event body
- Added support for user to provide a custom StreamEventDecoder to transform StreamEvent into Key/Value pair for MR input.
Merge pull request #392 from caskdata/feature/enhance-mr-stream-input

[CDAP-331] Allows more flexibility on the data type for consuming from stream for MapReduce
Merge branch 'develop' of github.com:caskdata/cdap into feature/improve-testbase-startup2