Resource oriented applications framework