Implement UI for editing resources and their limits

Note: the limit is not converted to an int yet (and not validated either)
jslint
Only try to fill in resources if there are any
Moved some tests to a separate file.
Merge branch 'master' into limited-activities

Conflicts:
	lib/activities/resource.js
	test/activities/activities_test.js
Corrected and clarified a test.
Moved the resource parsing down into the activity (this breaks some tests for now...)
For now, we should parse resources only if they are present.
Added first test for fillFromUI and fixed the Resource (merge error...)
Added acceptance tests for fillFromUI (most of which are currently red).
added limit parsing, added some tests for illegal inputs
Fixed the submit test.
Fixed bug in Resource.isFull(). Clarified tests.
Added a test for multiple resources with different limits.
Adding more tests for replacing, renaming and removing.
Replaced ensureList by misc.toArray (which magically fixes four test cases...?!)
Some clarification and cleanup.
1st step in centralizing userrights
2nd step in centralizing userrights
- additionally deleted strange tests
Removed the delete button, added a hidden field for the previous names, moved the resource transfer code into resources and adapted it to work as desired.