rosa.svn_post_commit: tidy up

The main function is now wrapped in a class.