Fixed numDaysUsed calculation
Refined techXp json response format
Implemented middleware-based req processing
Factored methods out into middleware and put into libs.
Added methods to append techXp (with decay) to resume.