flask: Export db variable
views: Added /files route
model/igcfile: Removed unnecessary get_download_uri() method

.. and with it the last flask dependency in the model