Add some files copied directly from Buildr

These need to be reworked in order to function independently.
Copy util.rb from Buildr
Take out some code that only applies to Buildr
Maybe we don't need deprecated.rb
Clean up code to fix Ruby warnings

Also, #defined? is apparently not a substitute for #method_defined?.
Remove more Buildr-specific (I think) code