Adds JSDoc to the Application.

Still a WIP, but this adds JSDoc to the Application source.

I've never used JSDoc before, so feel free to give me feedback on the methods and properties that I've already added.

Thanx
I'm not sure if we're supposed to be indenting like this, I wonder if it will be added to the json.