add javascript mods api

Ticket

+commit
 

Now that we've managed to move all javascript into cards, we need to create standard ways to tap into wagn js behaviors.

 

One thing that will need attention is automated handling of multi-file scripts.