Added API

Added JSON API to blog and permalink