Controller returns a function

@gtrogers, @maxfliri
Include lpa controller in r.js build

@gtrogers, @maxfliri