add index.js
change connection URLs
fix test paths
move contents of server to index