Bug 840075 - [MMS][User Story] MMS sharing from media applications r=julienw

This includes a minor refactoring of application state change logic
(necessary to support previously-impossible transitions such as
"ThreadUI" -> "New Message").