added permissions and group system
a lot of stuff, cant really remember too much. Should commit more often.