Addition of util/deparam from jQuery BBQ

deparam helps with URL query strings.

Tests also added for deparam and media.getState