Add ability to specify any additional ajax settings. Fixes #223, fixes #185