Got local storage for messages working.