Added 'score' to fragments for ranking (NOT functional yet)

Score function still needs to be added. Currently uses fragment size such that client side ordering can be implemented.

Also slightly changed JSON generation to get a better overview of what is being generated where (opening bracket of first and closing bracket of last fragment were generated outside fragment JSON generator, now this generator includes the opening and closing brackets for _all_ fragments).