1. I don't have problem with bitly but i just wondering how google refer to those links that direct to site 1 (bitly) and redirect to my own site?
bitly links redirect using a 301 header. This does differ from one service to another, so it is always good to check via a page like this: http://www.webconfs.com/http-header-check.php (just paste in your shortened link and look for the HTTP response)
Using a 301 means that and PageRank is passed along that link to the final destination page.
2. There is any way to track those link throughout google analytics ?
Yes. If the links are pointing to your site then add analytics campaign tracking variables to them and you'll get lots of additional data. This tool helps: https://support.google.com/analytics/answer/1033867?hl=en
3. Do you have any idea were can looking for the script mentioned above?
I can't stress this enough: I have not used this script. However a quick search for [short url script] turned this up. http://yourls.org/ I suspect that there are many others though.