Fix to allow 404 page creation

Modified the constructor to allow custom 404 pages to be used.
Merge branch 'custom-404-page'