lua: add example to rebuild the status line

This can be used to easily extent the status line for one's own needs.

I'm not experienced with lua so a few things could probably be done a
better way.