Added DoWithUUID function

Hey.

I started working with the mc server code and this is my first pull request that adds #1579.
Please review before merging it.
We prefer the asterisk-style comments (`/** doxy-comment */`) for new code. Old code will be converted eventually.