Separated search

- No more combined searching
- Added REST functions in rest.js file
- More error logging
- Fixed indention
- Added copyright on top of .js files
Was this supposed to be `if (data[marc] && data[marc][marc]) {`?