Refactor

Not to be merged yet. See notes on the refactor over in WardCunningham/Smallest-Federated-Wiki#403, and steps in #11

Replaces original merge request #10 - a new branch so we can revert to ignoring the generated javascript without disturbing the OpenShift quickstart that is using the other branch for deployment.