added RestManager to handle rest calls, fixing a RestKit bug