Refactor Akka configuration, close #928