Added an attributes system similar to the resources system, closes #129.