Merge pull request #1 from bstrdsmkr/master

MySQL database support
Added import of common.addon
Changed all print statements to xbmc log's
Added import of common addon
Changed all xbmc.addon calls to common addon calls
Changed all print statements to use xbmc log's
Removed import and usage of xbmcaddon, changed to use common addon
Changed print statements to use xbmc log's
Fixed return of season as integer in get episode meta call
Fixed formatting of Guest Stars
Ensured season and episode have a numeric at all times
Return None for SQL statements that may not happen
Added clean_name function to strip unwanted characters from movie name, helps improve TMDB results
Added update for mpaa, director, writer tags
Fixed imdbVotes not passing thru correctly
Added new value format check on Duration
Removed if check on TMDB metadata, now queries IMDB at all times for extra info
Fixed small bug on get_setting
Created new function to dynamically create a SQL insert statement for MySql/Sqlite
Uncommented Movie Year logic
Replaced movie/tvshow sql insert statement logic
Added grab of director and writer from TMDB returned meta data
Added Year column to tvshow_meta
Added upgrade code to add this column to existing DB's
Ensured TVShowTitle was being returned for Episodes
Updated sql_insert function to work without dict
Updated all sql inserts to use new function
Stopped using _convert_date function to grab the year
Added episode_title to get_episode_meta() function and set it to 'title' infolabel
Updates for MySQL support after previous commit

Changed all occurrences of the variable "type" to "media_type" since type is python keyword

Added MySQL specific upgrade logic in temporary code sections
Merge pull request #2 from bstrdsmkr/patch-1

Updates for MySQL support after previous commit
Updated watched infolabel
Ascii encode on movie name
1.0.2
Switched back to fetchone() on upgrade code
Try/Except around get_meta() log msg
Use StringIO to avoid get data from internet twice
Merge pull request #3 from phuang/master

Use TemoraryFile to avoid using urlopen() twice on one url
Update lib/metahandler/metahandlers.py

Added decode('utf-8') of movie/tvshow title
Update lib/metahandler/metahandlers.py

Fix media_type on logging