added functinoality to retrieve lastaction and lastcontroller from the logs on the remote class with tests