Remove exception declarations from replicator.py

Exception declarations should be stored in
glance/common/exception.py.

This patch transfers UploadException there and replaces other
duplicate exceptions with standard counterparts from webob.

Change-Id: Ifbb2c22c4360067e22af37b4439ff5eff93e4073
Upgrade tests' mocks to match glance_store

Latest glanec_store release added a new `context` keyword to some
functions. This broke backwards compatibility for some of the tests in
master and juno.

This change adds the corresponding keyword to the mock calls.

Closes-bug: #1391437

Change-Id: I5e58462e4c076b3ea56e27361eb6c3b0aafa2493
Merge "Remove exception declarations from replicator.py"