Implemented LoudnessSensor feature and relatet tests

minor refactoring
Merge pull request #509 from Catrobat/LoudnessSensor

Implemented LoudnessSensor feature and related tests.