add .gitignore

- ignore vendor/bundle/*
add *.swp to .gitignore
add pages route
add pages controller
change view format from html to json
add view index and count
Add API specs
Update page API specs
fix database settings
Merge branch 'develop'