drop restler for jquery so we can easily use promises; use $.when for grabbing the TP entities; roll version