Tests next
Make it a proper flask extension
Update docs