The HD137496 system: A dense, hot super-Mercury and a cold Jupiter