Replace ErrorTask with DocumentTask in build logger

Fixes #40
Some fixes for better error recognition
Refactored and improved rustc output parsing

When a note and a preceding error/warning have the same span, they are merged now
Merge pull request #41 from Boddlnagg/master

Replace ErrorTask with DocumentTask in build logger