Updated plugin code, added Github structure

Updated plugin code matches that used in ct-jquery-state;