set up tests and added sample tests for index page
fixed line endings, reorganized some files, and moved DB setup into app configuration