Add average & usage plugins for resources & Add ES index setting & update mapping methods