Updated samples to appRewrite and moved their resources to their respective resources/ folders.
Inclusion of .gitignore file.