Modified API for providers, added samples

Fixed some API issues and added request handlers for linear requests
from providers.
Also changed some callback annoyances, standardized with success and
failure cb's.
Added sample to download and save provider db with names and alternate
names for crosslinking.
Broke most of the older samples probably.