removes gems not required of an api app