Added role-based security
Added some extra fields to patentable entity and removed domain object from view
Added some add-iem logic
Just some random sprucing