created parser for htmlEngine, added port to parser, use port in socket setup, fix id check in socketmodel