base socket connection, amf parsers and server models