Solving $digest problems caused by asynchronous callbacks

This is the recommended solution as described here:
http://stackoverflow.com/a/18996042/2251810
Add configuration for default markup language