SPARK-894 - Not all WebUI fields delivered VIA JSON

Added "state" and "duration" JSON output for the ApplicationInfo object.