Refactors and implements rules for running pipelines in main branch. Contains also placeholder for long sanitizer test in issue #62.