Remove unnecessary imports.

Suggested by android-lint.
ExampleViewerFragment: Use some Java 7 syntax.

Suggested by android-lint.
activity_login: Use gravity end instead of gravity right.

Suggested by android-lint.
Add some final keywords to class fields.

Suggested by android-lint.
Remove some unused code.
SubjectFragment: Make the image invert when clicked, like in the web UI.