Fixed bug when UI accessed via controller name

Fixed bug when UI part is accessed only via controller name, this caused
JS to send requests to root folder action instead of correct route and
controller.
Reduced lock usage
Enabled NuGet restore