Added training and prediction servlets, including a cron job