Close #348
Fixes html to xml conversion.
Close #346
Fix problem with $_POST not working right. Also fixed redirect.