added curl upload function. added some new resource tests according to today's conf call