Added directive for handling clicks on edit button
Updated messageDetailCtrl to handle promise
The action when clicking an inboxelement is now based on browser width. Small equals goto messages/messageid