Computability, Randomness and Ergodic Theory on Metric Spaces