Add prototypes, add stub mainline, add .gitignore