improved web interface login, internal area, inheritance
added aliases support for subjects, fixed some issues with sql