My bid is NOT a completion of project bid.
Unfortunately I have attempted to do what you are requesting back in Oct 2008 with some minor support from an MT4 community. In order to complete this task the scope of your project needs to change, and it should be broken into several discrete pieces.
This bid will give you the advice, experience and a specific plan of action to complete your goals. I spent several days studying the MT4 traffic with Wireshark in addition to working with MT4 for months, and getting more frustrated with a long litany of flaws in their platform. I expect that you are trying to build an open source platform for MT4 trading, I attempted the same thing. I believe it is possible, but it is not reasonable AT ALL as part of your listed scope.
Please look at my skill set and full summary. Again, I am offering a way of achieving what you are attempting. I want to bid $50 for providing this information within 1 day, but that is not permitted. A 'reasonable' completion date for this project is 'never' due to technical complications. Breaking the project into smaller sections and following my plan: 6-15 weeks.
I may be able to provide the MT4 server code as well.