Bug 809645 - better auto-brightness adjustments

This pull request modifies apps/system/js/screen_manager.js to have (hopefully) a better and more configurable auto brightness algorithm.