Merge pull request #73 from jofomah/master

refactored inventory to use factory
Clear alerts on state change, closes #207
Merge pull request #74 from tlvince/bug/clear-alerts-on-transition

Clear alerts on state change, closes #207