[NFR] Make Model::getMessages() filterable

See #885