Cleanup messageFormatter example to use logs from build steps instead of directly using build logs

Current example ignores build steps and directly fetches build logs, this change fetches the last completed step first and then goes about extracting build logs from said step. Makes for a better example to follow
Are you sure about `step()` here?  It'd call _something_, I'd expect just plain `step`...