Added ION auth lib and some template changes