Patch getAllMediaFiles and remove media in cleanUp to accomodate API cha...

...nges as per bug 858416

The API changed to return a fully qualified path.

branch info----
`v1-train` -> Tested, merge
`v1.0.1` -> Not tested, do not merge. Cherry-pick this pull when (if) 858416 is uplifted to v1.0.1.
`desktop` -> Not tested