pass in root application element
extract js templates to separate file
throw unhandled exceptions
utility function to remove app event handlers
functional test to send/receive message
use separate app during unit tests
extract factory for url map
generate url map for testing server