Initial work on attribute permissions.

Permissions are role priority based. Upgrade scripts have not been
updated.
Move role permission check to user function.
Restrict advanced search attributes.
Restrict RSS feed attributes.
Add defaults for role and priority.

Default role is public access. Default priority is 0.
Update upgrade SQL.
Fix PHP errors.
Fix errant apostrophe.
Merge remote-tracking branch 'denny/perm-update'
minor cleanup to pr #21