Fixes #587 and fixes #515, require.toUrl fixups including allowing ids without file extensions