Moved functions that should be private to WPresource class to make them private. Changed apiRootUrl function to return NSURL with endpoint added.