Issue3 move validators and generators into app

fixes #3