added connection flag constants
added connection state constants
added Connection::setAccount()