Implement custom low battery check

This implements a custom low battery check which hopefully can be used to implement #1109.
I added vibration to notify the user. It would also be nice to add a notification.