Removed crypto js lib from template. Deleted old code and general cleanup