Added a way to determine the resource cost from components. Resolves #29
Improved entity template ui, resolves #18