More reworks

Most noticeably with webmap and webassets for better integration into
OSW.
API has been writen to make it easier to use webassets.
Login and register has been touched up abit.
Update and touch up to site.sql so please dump your site's DB first if
upgrading from a prev test version.