Release 4.1.0

Updated database API, added cron job to flush tokens, bug fixes.

Change-Id: Ib9458ed28704c68dad6a2b2f19ee791bbee2ee2e