add get_available_packages_from_url(), and add unit test.
- also fix the parser bug of nexus-4 device. ex: m-c-nexus-4-eng.