Merge branch 'optimize_max_messages' of https://github.com/MaciejBaj/parity-bridges-common into optimize_max_messages