Concurrency Fixes

Correct if-matches to if-match and add if-none-match.

Added tests for state set, get, reset, delete and same for activity profile. Need more assertions but I've verified the network requests.