Error on json callback and ResourceServerConfiguration in sparklr2

Fixes gh-304, fixes gh-307