Update to typescript 0.9.5, Big namespace refactor