Fixed tile edit hook handling.
Fixed wire color checks.
-Added more 1.2.2 support.
-Added and fixed some utility methods.