Runnable AutoPanel

Cleaned up AutoPanel so that it will at least compile. Looks like
there's still a nullpointerexception in dummypanel, which I can look
into later.