Update references and target framework
Add error pages and static files support
Remove unused using statements