Fix gitignore patterns and put api doc in site directory to avoid rake std output directory name conflicts.