Fix bug with relative paths, improve JSON response consistency
Merge Sahat's index route