Changed inner communication to core-async
Added events for documents loading