Client now "requires" application JS based on list sent from server.

Added application names method on server.

Client uses this list to require application js needed.
+1 for ternary