Moved utilities to a dedicated library.

A lot of the utility methods that were previously in GenericUnitBehavior
are now in LibRevel.cs. GenericUnitBehavior has been modified to make
use of it.