UI Screenshot Test framework refactor + new tests

This pull request contains all the new tests for this change: https://github.com/piwik/piwik/pull/235