Configure the app directly from the config file

Flask can configure itself directly from the config file instead
of importing everything from it and explicitly setting it to a
configuration variable with the same name.

So instead of:

    from app.config import UPLOADS
    app.config['UPLOADS'] = UPLOADS

we can do:

    app.config.from_object('app.config')