Show pending updates in the API check resource

Ticket:	#6300
Rewrite freenas-update to use the new paradigm.
Merge remote-tracking branch 'origin/master' into freebsd10