Changed files to use config constants.

Trialed some REST services.


Signed-off-by: Alex Martin <a.martin.12@ucl.ac.uk>