Updated AStyle code format.
controller:lib: Fixed bugs caused by using wrong position offsets for
commands.
controller:app: Added command line test function for LOCK_ENTITY command.