Keith Earls has signed a new deal with the Irish RFU, and will continue playing for Munster for two more seasons.