Restructured the rest api a little, moving it into its own file. Also touched up the index.html view