Encode the history token before using it in a URL-ish context

The #replaceState() and #pushState() functions take a URL as optional third parameter,
so we need to ensure that that one is properly encoded.
Enabled injectAtEnd for CssResources in mgwt.
Merge pull request #48 from ibaca/master

Typo in Platform.gwt.xml module dependency
Fixed typo in platform Slider.gwt.xml
Changed panel from CssResource to MGWTCssResource.
Added proper events to MSearchBox.
Fixed Panel to accept children in UiBinder.
Moved LayoutPanels to FlexPanels
Added SelectionHandler to WidgetList.
Fixed rendering issue with MCheckBox.
Added default values for text selection.
Merge branch 'master' of https://code.google.com/p/mgwt
Remove legacy
removed mgwt.os
Fix TouchEndEvent simulation.
Removed mgwt touch events & changed permutation system.

Added new ImageButtons
Added new buttons
Add highlighting for image buttons
Remove targetdensity & make device-width default.
Restore orientation change handler.