Initial revision

Far from finished, mostly just laying out the files and filling in
term_frequency functionality