Update elasticsearch to 0.90.2.

Also fixed a couple maven compile problems and a test case that broke when tested on a Windows machine.