Refactor method missing

This is nothing more than `method_missing` being reimplemented to write the method out on first call. This works with instance attributes as well as class.