RingoJs compatibility

this is a work in progress branch.

i'm filing the pull request to get feedback and avoid duplicating efforts.

this branch only works in combination with the "ringo-fixes" branches of my requirejs/text and requirejs/requirejs forks (with the normal master, more unit tests fail)