Split actions into local/remote, subsuming old API functions.

Since we are now mirroring folders/labels from remote accounts to our
local data store as-is, we no longer have a unified API for what e.g.
'local archive' means for any given message. We solve this by expanding
the actions API to also cover local actions.