The restriction that documents couldn't be named the
name as real directories has been removed, so
overloading could occur for custom scripts
This doesn't really work completely correctly, for two
reasons:
1. There should be a warning system that the user is
going to create a document where there is already a dir,
so perhaps a checkbox should be added to confirm this
2. If a document not at the top level is to be overloaded,
then overloaders need to be written for all parent docs
E.g. say you have:
/resources/foo/index.html
And you want a custom script for 'foo', then you'll need
to make one for 'resources', as the 404 redirect won't
work properly.
perhaps detect whether or not there's a php script in
there and if not then trigger the autoloader, otherwise
rely on the script to deal with it.