Running editor.setTheme('libs/ace/theme/twilight') will look for theme-twilight.js in the root folder.
I tried looking at the documentation without finding any help.
Also, the workers, are they required for any languages, or is there an option to turn them off?
Again, found no solution to this in the docs.
After searching for a good while I found these two:
You are a hero, needed that basePath property and had been looking for days. Thank you.
For future reference, this is a complete example (modeled after the embedding example on the official ace website) for having ace.js somewhere else (I had it concatenated into a libs.min.js):
var editor = ace.edit("editor");