Reworked JSON model and added some UI for performance groups.
Tidying up
fixed an error
forgot to commit this
Some more work on the Structure Definition page, and some tidying up of app.html.
Merge pull request #1 from JoeyScarr/master

Structure definition functionality, and tidying up of code.