Moved "fetch posts" logic in own module.
Splitted fetch_posts function up into two functions.

Splitted into fetch_posts_nearby and fetch_posts_within.
Also documented the functions, but not yet implemented fetch_posts_within.
Added more description in docs.
Updated tests for upcoming by-rectangle API.
Updated documentation of GET /posts/by-rectangle.
Check for too large resolution in test.
Implemented new GET /posts/by-rectangle route.
Fixed implementation of GET /posts/by-rectangle.
Fail early when errors are occuring.

Always check for an error and call done if there was one.
Implemented fetch by rectangle logic.

Not yet finished, the grid will not be generated.
Moved posts.js to controllers/posts.js
Renamed functions to match camelCase style.
Implemented grid.
Reformated documentation to make jshint happy.
Added test to check for returned "null" instead of GeoJSON object.
Only add docs if they are not null. Fixes test.
Merge branch 'dev'
Pushed version.