Fix CASSANDRA-6075

patch by Aleksey Yeschenko and Benjamin Lerer
Merge branch 'cassandra-2.0' into cassandra-2.1

Conflicts:
	src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
	test/unit/org/apache/cassandra/cql3/SelectWithTokenFunctionTest.java
Merge branch 'cassandra-2.1' into trunk
Trunk Test fixes

Patch by Carl Yeksigian; reviewed by tjake for CASSANDRA-7991
Optimize java source-based UDF invocation

Patch by Robert Stupp; reviewed by Benjamin Lerer for CASSANDRA-7924
Fix pig tests on Windows

patch by Benjamin Lerer; reviewed by Josh McKenzie for CASSANDRA-7986