Added a custom HasMany.js implementation which fixes a race condition with addrecords and updaterecords events happening at the same time.