WorkflowId and Last Received Event

Adding in the workflowid and the ability to retrieve the last event in the history.

Tests include calling both features on an object with many events, and calling it on an object with no events.
`json_decode('[]', true)` can just be `[]`