Merge branch 'dev'
Fix incorrect permission fetching
Support single sign on; refactor SQL to separate function
Reorder revision list; fix 'back to post' link
Fix query error
Add answer link and more refactoring
Update readme; 1.3 release