made permalinks open in same page
added piwik analytics support