Don't manipulate the phantom property

Converts tabs to spaces as well according to style guide
Refactor getRecord function
If there is no record selected or action is add create a new on
Don't reference the selected record to itemUi if case "new"
Merge pull request #424 from cookiekiller/styleguide_phantom_param

Doesn't manipulate the phantom property directly any more
Merge pull request #429 from nsendetzky/master

Adds client decorator infrastructure and extends factories to allow injecting objects