first pass on attribute mod UI

added metatype lock;
added attribute value selector and arrow ui;

cleaned up the table drawing and secondary attribute calcuation code;