F/3.0 bake improvements 5319

Add two bake improvements:

Add NotFoundException to Controller view and edit methods
Set variables using compact at Controller view method
Is there something missing from the PR that does use them @aleixfabra ? If you're going to add that, a limit is needed to prevent `select id, name from huge_table` blowing everything up and leaving you with a fatal error.