Replace Delegator inheritance with hand-made

Ruby 1.8.7 Delegator class differs completely, so this commit might be reverted
once Ruby 1.8.7 support will be completely abandoned.