Added REST interface to matgendb. Modified docs accordingly.