extracted several continously used functions into util. implemented getCurrentActivity in harmony client. communication using promises in harmonyclient prepared