replace any '\n' character in the incomming payload string to avoid exceptions
unit test for bitbucket hook added, github tests updated to support author and when_timestamp