Added promises to load initial resources
Added "url-options"