update to 2.2, remove deprecated method calls
update used node version in tests
Merge pull request #13 from xi-project/2.2

2.2