Added RestClient and global classes

Added the RestClient class to make calling across the network easier.

Added the global class to contain common functions needed in different
scopes.