Added midi resource handling to the project. It still requires some architectual overhauls before use however.