#776|+Riya| Externalising messages
#776|+Riya| Refactoring distribution controller to use promises and construct distribution object on initiation. Adding get and put APIs to indexed-db service to handle scope digest. Moving record-facility-data controller from route definition to html. Auto save directive WIP.