Add hook for calling a user defined function for logging all share submissions

This patch adds a command line argument for a python module which can be used to log all share submissions from miners. The passed function is responsible for filtering out any submitted shares which do not match the needed criteria.