Call .onAttach and .onLoad with libname
Add tests for libname in onload and onattach
Update NEWS
Merge pull request #280 from wch/loadhooks

Call .onAttach and .onLoad with lib path and package name.'
Fixes #279