Implement get_resource function

Introduce a dict that stores the data how a resource can be
created. It can refer a object attribiute or a function.

Change-Id: I55760ac043ee4777fd8f9e2363029d2f05774727
Signed-off-by: Marc Koderer <m.koderer@telekom.de>