Use Stream API in place of foreach loops.

This is IDEA's automatic inspection, so stuff may be a bit wonky.
Simplify some return statements.
Simplify lambdas
Use method references.
Merge pull request #110 from csmith/master

Use Stream API in place of foreach loops.