CDAP-589 Example of service discovery from MR

Updated PurchaseApp to add UserProfile service and demonstrate its use from MR.
I think its ok to not close the stream since we are closing the connection associated with it. The stream is also of type InputStream so there is no data loss.