Added a welcome middleware constructor

This PR adds a middleware constructor for welcome messages.