account api added

Only JSON is supported on account API at this time. XML will be added
soon. Plain text probably won't be in it. Also added apps.php, which
gives a list of known supported apps. This requires a separate table
either in current database or in a new database.