Logout method

1. Use a Velocity for demo
2. Add a method to logout the system
3. Selector can be customized now.