Initial attempts at defining the hierarchy of the javascript files. #1318

did not attempt anything under src/routes, as though seem to be api related functions that are currently documented or outside of my scope of knowledge. (+1 squashed commit)
Squashed commits:
[83c5683] Initial commit of JS Flow file for docs