PhoneStateReceiver: Remove a couple of nested code blocks.

Remove a couple of nested code blocks to improve on readability.
Add copyright header to most java files in the repository.

This also adds some fuzz from the the Android project formatter. The only
headers which are not added are ones added from other sources. It's probably
legal to add them to those files, but probably unnecessary.
Merge pull request #425 from avuton/master

v2 Add copyright headers