Added junit tests for MainApplication (100%) and DaoHolder (80%).

Will follow tests for the resources with a mock Dao.