added post functionality to sdk-pblib.js
added auth function
added rule function to Playbasis