Fixed laziness of current_user in UI modules, and added tests for current_user.

As discussed in #820, this fixes the laziness of current_user in UI modules by adding a lazy current_user property to them. Tests for the current_user property are also included.