Improve led button logic and ambient light sensor control

Please have a look into the commit messages for details.

To use the improved led logic an adapted version of liblights has to be used which can be found in the android_device_lge_p970 repository.