Add ref/unref methods

Add ref/unref methods so a meter doesn't keep the event loop alive when everything else has quit.

I tried to add a test but I have no idea how to check that with the test framework that you use.