CDAP-538: Ported procedures of WordCount app to services.

@ParthGandhi The WordCount app has been updated with services instead of procedures, please take a look.
``QueryParam``s now also support ``DefaultValue``s. So we should use that instead of the if-check. 

@jwang47 That would address your question, right?