groupBy with element selector

Fixes https://github.com/Netflix/RxJava/issues/1554
Merge pull request #1567 from benjchristensen/groupBy-selector

groupBy with element selector