The mission of libshell is to keep in place all patterns, functions and etc of shell as a library which are useful in day-to-day work activities. With libshell one can definitely obviate the task in hand.
A simple applet to gnome panel (and others) to control moc, actually it allows you to:
* play/pause (if the server isn't running, start it)
* next
* launch mocp from panel