Adds middleware function to Meddle API

middleware function constructs a MidwareStack of Midware types from a list of either Midware or functions that return Midware.