working Mongoose HTTP server a few iOS-specific fixes)