Application.prototype.wrap, fixes #5