Refactor. Model schema moved to assets_helper.py from db.py and queries.py.
Fix asset save.
Fix datetime issues with Safari. refs #85
Validate start and end datetime order. fixes #85
End time is the same as start time when adding new asset.
Merge upstream