Restful application

This is for the new restful application apis. No docs yet. I'll put those in another PR. For now the specs document pretty well.