Moved PHP file for the statement API to php/api

This is to accomodate the metadata part of the API that will appear in
the next commit.
Implemented metadata in the API

Basically, all the information from getTag that is meaningful to the
user is given. Including statement, in LaTeX (with some HTML
interspersed unfortunately).