Moved interfaces to classes
New pages templated (library, errors 404 and 500)