Changed around code, added url parser, made a frameworkish thingiemajingie