AppContext parameter added to all API and backend functions

WARNING: BREAKS THE COMPATIBILITY WITH PREVIOUS CODE USING THE LIBRARY AND PREVIOUS BACKEND IMPLEMENTATIONS.

- Fixes issue #28, makes it possible to pass database connections from the application context to the backend functions.