Ensure ACLs are ordered and have unique IDs

 - fixes an issue where ACLs are being removed unintentionally
 - ensures the order of ACLs are the same as defined in the file
 - ACL id's now include the index determined from the file or during creation

/to @bajtos @raymondfeng