Fix getAllSentMessages, move files to bmwrapper namespace