Fix Blogs resource and dependencies:
1. Use PDO prepared statements to protected against SQL injection attacks
2. Do JSON-encoding at the resource level, not the DAO level.
3. Respond to requests by subdomain or ID - not sure if ID lookup is currently used, but I prefer not to expose IDs as part of an API if possible/reasonable.
4. Use dependency-injection container.
Merge branch 'master' of https://github.com/ssevertson/twestival.com