Reworked HiLo generator to match NHibernate implementation.
Merging in hilo proc changes.
Merge remote-tracking branch 'origin/master' into upsert