Clean up some debug statements.
Use lowercase dom for DomUtils reference
Properly pass along the post id so that fetching a gallery with no attributes returns correctly. And bail, if the response is not authorized or empty.