Api exceptions

Adds AccountTable.scala which I forgot in the last merge.