- got flask-principals finally to work as expected
 - added a few templates
 - put the lock class into a seperate file