SmartCover: Cover open/close action

When closing device cover and keyguard is showing goto smartcover view
and when closing device cover go to sleep if keyguard is not showing

Signed-off-by: dragon <dragon7780@hotmail.nl>