Add license info.
Replace functionality with that from hanging_methods gem.