Added a basic status api endpoint for retrieving state and last build status