Move REST exceptions to common package

Allows their use in gutterball resources.
VersionUtil doesn't look like a candidate for common, it's reporting a candlepin version/release from candlepin_info.properties, which wouldn't even exist if we ever deployed gutterball itself, but even so it probably shouldn't be returning candlepin version/release as a header in gutterball requests.