Merge pull request #4 from Cfeusier/CF_db_check

Cf db check
Remove stupid formatting
Remove api into separate sinatra app
Refactor dir structure
Add event listener on vote button clicks and change layout rendering