Cleaned up directory for testing monitor

- Added Apache license in files which did not have it.
- Converted end-of-lines in some files from Windows to Linux so all are Linux style.
- Removed trailing spaces.
- Deleted some obsolete code.
- Corrected comments.

Change-Id: I2d5e454f5b2e47ecdc3b2182888bbbd0a94552e4
Merge "Cleaned up directory for testing monitor"