Phantomjs cookbook

Fix attribute handling so package version can be specified in a data bag item.

Try to bring tests up to date, but not quite there yet.

@vachanw 
@vnivargi