Moved configuration dependencies around.

s2ajax should not make any assumptions about the URLs for actions.
Need root to read the config.apiUrl.
Merge pull request #42 from mattdenner/integration_fixes

Moved configuration dependencies around.