Split out AJAX stuff into pb.http. Updated pb to use it.
Added pb.http file.