MOBILE-168 Initial cleanup of the legacy code for hardcoded tests

This is an initial commit for make some tests, we delete old (unused) code, for see how notifications are going to work see:

https://tracker.moodle.org/secure/attachment/34715/index%20%282%29.png

https://tracker.moodle.org/browse/MOBILE-452