change import of IngegrityError for sqlalchemy
move Nugget class into models.py
remove obsolete (non-flask) tests
move Task object from core to models
remove old sqlite backend