Updated the app to use generic views and included some basic
unit tests

Signed-off-by: royka <samjacobclift@gmail.com>