Add as_app_set_state()

Also, assume local .desktop and .appdata.xml files are already installed.