bug 1098274 - [Stingray][Home] Add and remove card programitacally

This pull request contains 2 commits.
Please just review the one titled "bug 1098274 - [Stingray][Home] Add and remove card programitacally" since the other commit just belongs to another bug that hasn't committed yet.
I refactored codes for key translating and gesture to `tv_shared`at that commit.