Some fixes/restructuring of the frame/widget stuff.

I still haven't actually *run* any of this, but I'm now confident that
it reflects what the code is going to look like. It imports
successfully, which is more than I could say before.
Added .ropeproject to .gitigonre

I'm using python-mode[1], which liters the working tree with these.

[1]: https://github.com/klen/python-mode