Added some views including pollIndex() and detail(). Also added a 404 handler with custom template and moved the 'view' functions into a separate file.