major sensor improvements

from :https://gitorious.org/replicant/device_samsung_i9300/

modified to work with L

Change-Id: Id3a9f559bd90035595e7bb46b0d26093478ee2ae