Make inject decorator work also on classes and save some keystrokes

With regard to class-wide injection interfaces suggested in #14.