Fixes #132.

Adds a modal controller to allow changing the message passed to the modal. Also removes the need for the timeout on modal close as it uses the promise returned by angular $modal.