remote_api: allow localhost:port and fix app ID regexp

Change-Id: Ice06f3d69ead72991286492a8a097f91da160874
2 files changed