Removed index.php from url.

This should work on all apache instances.

Also generated some extra code and things.
Added getters for users in roles and organizations.
Also added getters roles and organizations a user is a part of.

Also did some bug fixing and changed some urls into yii created ones.