Attempt to convert to a real mco client

This is an initial effort commit; additional debugging likely required
from here to get it to actually work.