Add maven archetype. Add XMLHttpRequest binding. Minor bugfixes