PEP8
remove unused imports
fix commit method usage (belongs to connection, not cursor)
do not reset options when firing a scan
make returned values more coherent
return file content in a json message when calling download endpoint
unused imports
avoid using global variables, use a "store" class
all instance attributes should be defined in constructor
avoid names shadowing
moar logging!
Merge pull request #583 from mattoufoutu/api

RESTful API improvements