Sort struct dockeys

This builds two lists with all exported fields, potentially not entirely used, and then dispatches a search by name to the reflect machinery on every single field. I think we can do better with an approach along these lines:

http://paste.ubuntu.com/8526037/

I coded that blindly (not even compiled). Can you please try to make it work?

If it does work, we're ready, but before merging, please move the content back where it was. It's just adding a couple of small functions now, and this file does not justify itself anymore.