Make 'public', and rewrite, optional for attributes

#6852
Add attributes with ajax and don't load all attributes at once.

Significantly improves performance with many attributes in admin.
Closes #6852 cc @claudiosmweb