Resources loading

Currently just draws a NOT gate on the screen
Added static toolbox

Also cleaned up some of the UI logic. Toolbox should probably be its own thing