Moved configuration dependencies around.

s2ajax should not make any assumptions about the URLs for actions.
Need root to read the config.apiUrl.