added attribute-getter define methods

Added two methods:

- One for creating a attribute-getter by attribute-key
- A second to execute the first for each element from the passed array

Committing this because it is useful for patching Nanoc::Item on runtime to keep
own scripts smart and readable.