Changed how the main interface is loaded + cleanup. 

WebIDL.js interface also gained two methods implementOperation, implementAttr. I'm not too happy with those right now, but they will do.