Update gga-bacon-ipsum-api.php

Moved code into a new class