Bug 1091842 - Porting performance framework into new repo r=lightsofapollo
Some refactoring