Java cleanups

Not really important - just wanted to check out our flow and at the same time do some java warning cleanups and .gitignores.