Get bIDs of current version

Would be great if it could get the bIDs of the current page version. I ran into a trouble working a project with this.
added logging for page move to trash and page delete
Merge branch 'master' of github.com:concrete5/concrete5
Merge pull request #1076 from hamsterbacke82/patch-2

Get bIDs of current version