Add the ability to restrict swipe direction.

Add a field to specify a direction for cards to be able to be swiped.

Change-Id: Ifae1de11df626639d47af7f686b31720368a52d8