Using Config API to retrieve core values (fixes #103)

Required for 3.1 compat
Misc 3.1 compat changes

Removed nested_urls check, its the only supported mode now