Now using Lua library instead of shell commands to access ubus. Refactored mock object stuff too.