GWTII-149: cherry-pick for javascript api
GWTII-149: javascript api (moved from gwt client)
Merge pull request #28 from geomajas/GWTII-149-javascript-api2

Gwtii 149 javascript api2