Replace if/else logic in project.mako with json.dumps
Add docstring to addon-permissions.js and fix profile.mako comment