Merge pull request #17 from laczoka/fix_userpass

2nd iteration on CORS related issues
Close #19 - Fix for using endpoint urls without /
Merge branch 'master' of git://github.com/clarkparsia/stardog.js