Add copyright headers to most project java files.

Add a copyright header to most of the project java files, unless they were obviously owned by someone else. Probably legal then even, but not really important. Secondly, remove a couple of nested conditionals in PhoneStateReceiver.