Fixes issues 1513 1751. Also updates the unit tests to properly check for POST parameters. Patch by: mmendez Review by: scottb git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1521 8db76d5a-ed1c-0410-87a9-c151d255dfc7