updated gems
updated gems
Updated media api to match new format. Haven't finished updating tests.