Add initial function for pages prep, pend, sign and status

* Add function returning contract state, possibly first updating it by
  calling Bj for unsigned T2 tx.
* Add lhttpc as dependency