backport FunctionImplicits from develop branch

Change-Id: Iecd4d4ab01be372f25ec7cc4efee20290fb53e91
switch to scala 2.10.2

Change-Id: I5426cc206d8c6945a24e1980b1fe089edc236d35