Added enum type for Attributes.

I had wanted to use reference types for Attributes but having
the list as a seperate entity creates all sort of subtle
problems.
Merge branch 'version4' of github.com:bedatadriven/activityinfo into version4

Conflicts:
	server/src/main/java/org/activityinfo/ui/client/component/formdesigner/FormDesigner.less