add get_by_name method to flavors and images
Merge pull request #5 from yadutaf/wip-get-by-name

add get_by_name method to flavors and images