split out the ui from the lib (bug 902946)
Merge pull request #19 from andymckay/902946

split out the ui from the lib (bug 902946)