Converted all in angular way, need to migrate unit test for sha1 and bencoding for angular