Rewrite of the database system used in WTF.

This drops all of the wtf.analysis code and replaces it with wtf.db. The new system is much easier to understand, significantly more efficient (and has more room for optimization), and has 2000 lines less code.

I believe all functionality of the old system is present in the new one, minus xpath queries (regex and substring still work).