USERGRID-2800: added pause/resume capability on app monitoring; updated ...

...monitoring sample to be able to pause/resume monitoring.