[Extensions] Add XWalkExtensionFunctionHandler unit tests
Merge pull request #816 from tmpsantos/function_handler_utests

[Extensions] Add XWalkExtensionFunctionHandler unit tests
Bump version to 2.31.0.0

This is based on Chromium 31.0.1650.12.
Build fixes based on patches by Caio Marcelo.