Added xhr module and updated version number.
Fixes to make things work as a module.