Removed dependency against Flask.
A broadscale changes.
Inserting access record upon failed request.