added rule and auth functionality to playbasis js sdk

Hello, I've added post functionality to the playbasis js sdk because I needed it.