Handle POST, other small bugfixes