added EventSource for java and sample projects
Merge pull request #1282 from nraychaudhuri/java_eventsource

added EventSource for Java and sample projects
Add injection provider to allow for dependency injection of plugins