initial commit, factor out FormValidator code from LIMS2 so it can be used in WGE