Added basic urldecode of post data. Fixed double layout bug.