Bug 1054326 - Add image comparison framework to gaiatest

Initial pull request.  Following still needs to be done cleanly:
- Remove b2g-7.json under gaiatest directory
- Migrate test cases in tests/functional/imagecompare to tests/graphics folder 

Other feedbacks are appreciated (including naming change)