added support for subdirectories, make 404 page configurable for different domains, updates #246
Merge remote-tracking branch 'bohrsty/246_404-fixes' into stable
404 page: simplified base url-path calculation and moved it to OcSmarty class, so that it is universally available
updates #246