add tests for the permissions framework
python 2 compatibility
add continuous integration files