Extract DAO login into separate file. Change how posts are stored

From now on posts are loaded from file on every request. That's step on the way
to using MongoDB as posts storage.
Dao module uses Q-flawored promises to wrap node's async functions.
It will allow to do the same with MongoDB driver in future.
Use tabs everywhere, do not mix tabs with spaces