added GWT support and some sample code for testing.