Migrated all http calls to gallery factory