Replacing is/cast with as
Message deserialization done by json.net
Search by message id now performed when selected. Fixes #331