Added custom error pages.
Moved configuration options to a seperate file.