indexer: Add inverter

Add an inverter that collects the documents after the map phase and
creates the posting list for a term.
indexer: Move to own class

Move the indexer out of Main. Main is supposed to just parse the 
command line arguments and initialize the indexer with it.