Fixed issues with "Random":

- Attempt to fix "Random" freezes on some devices (got rid of that ugly while loop).
- Redesigned RandomNotificationService and Alarm.
- Use of shared preferences to store (and listen to) some triggers.