20140128 eth issue827 work items from json

Contains fix for PAT+Cloud, plus a couple other small fixes.