Local apps cck - first two modules

@andygunn, @sifrwahid @dismantl here are the first two modules for Local Apps. Please look over & let me know what changes you want to make.

@natmey or @critzo is it possible to put this on staging so that everyone can look it over?