Update BasePresenter.php

Implement the JsonSerializable and ArrayableInterface interfaces. This allows the use of json_encode() within a view, removes the 'resource' layer from the resultant JSON array and defers the toArray() method to the resource.