Lockscreen support

add new options,
various bug fixes.
Lockscreen support.