Deal better with expired edit tokens

When it hits a badtoken error postWithToken tries to refresh
the cached edit token. Let's take advantage of this by using the
core method postWithToken

In conjunction with this rename our getToken method to getTokenWithEndpoint
Rename all existing instances.

Note: QUnit test will fail until dependency is merged.

Bug: 64416
Change-Id: I4fa9964e0e256b92b57364c354fd5a4f8ebb3a98
Dependency: I78ba47a614512f6218e23d03e7c688e2c9efbe45
Merge "Deal better with expired edit tokens"