Globally renamed 'assign' method/function to 'assign_perm'. 

Also updated '.gitingore' to ignore WebDAV cache files.