Load gradient before reviver

Moved and renamed resolvegradient function in elements_parser.
Changed in single object function to call before reviver function.
Doing this in reviver function object represent the final form of the element parsed.

Usefull to make possible to write application logic that interacts with gradients in the reviver function for svg parsing.