Automatic plugin installation prototype

Here's the first working version of the code for my automatic installation of plugin JS files. It needs further testing with Chrome sockets and so on, but it's working well. All the JS generation is a pain, and it could probably use a bit more explanatory comments on the difference between js and lateJS, but it's there and working for the refresh plugin.

Comments welcome before I turn this loose on the wider Cordova team.