Misc updates

Fix nginx task, upgrade grunt.js to 0.4.2, and only accept numbers as page numbers.