minor
minor cleanup
now failed tasks have ability to pass value via $setOnFail
rewritten remoteResource with proper http support
rewritten http server
cleanup
now remoteResource handles redirects and cookies
data from previous request when redirect
added define declaration