added test command to package.json
moved databaseUrl to config.json instead of envvar
added tests for index json resposen
implemented json for index
moved picture routes to picture.js