added post support in YapRequest.php, also cleaned up a bit