Scripts/EoE: Second phase wps and some logic fixes, also some Alexstrasza rewrite
Scripts/EoE: End event support and rewrite

* maybe more stuff to do, but when I fix all rest
Scripts/EoE: Forgot the sql part