WebTag prototype improvements

Rebased WebTag improvements.
However, i cant see if they work, because connection to database is broken