Reworked echo sample to code config

Echo Sample now uses Javaconfig instead of XML.