[all] modulemapper refactor for accelerometer.

https://issues.apache.org/jira/browse/CB-2227
[all] modulemapper refactor for battery.

https://issues.apache.org/jira/browse/CB-2227
[all] modulemapper refactor for Camera.

https://issues.apache.org/jira/browse/CB-2227
[all] modulemapper refactor for capture.

https://issues.apache.org/jira/browse/CB-2227