Merge Permissions into Master

Made a new CouchDB view that only returns public records, to lessen strain on the server.