Updated api lib. Added Database and Api item classes/interface.
Upped version due to adding getting emails from the device.