Update to be compatible with latest galago

Some paths changed, RetrievalStatistics temporarily commented out.
Scalatra updated to use localhost rather than ayr
Fix input in word history; avoid empty words