moved stuff to bin, reimplemented getconfig, added __dirname to
requirejs configuration