use only basename of package for dependency name
remove empty lines on top
add some documentation for createWidget.
fix YAML config by moving dependencies before main script
merge changes from origin/master

Merge branch 'master' of https://github.com/ramnathv/htmlwidgets

Conflicts:
	R/htmlwidgets.R
	R/scaffold.R