Added API for logging in/creating blog posts using JSON requests