Recalculating assets

Made the assets recalculation work like the one in assemble.
This needs to be moved out into a function in assemble that can be reused
in things like plugins.
Merge pull request #26 from doowb/assets

Recalculating assets