added support for css templates, fixed links, preparing for fb permissions (actual ones)