Many bugfixes on the path change to core/ and on forms. Still needs bugfixing on forms, see TODO.