added a self-link attribute to the entityBlock object and used it as the id in the template. closes #38