dbid recovery when playing media

Added a dbid recovery logic to allow auto watched status change and meta data sync when playing media from random, recent or recommended episodes/movies etc... as well as the web interface.
added def get_dbid as well as supporting functions

Added cache as well to speed up the process of retrieving a dbid
Merge remote-tracking branch 'upstream/master'
Updated def get_dbid:

Removed caching and improved overall response time.
Merge pull request #9 from jhavens1566/master

Looks great! dbid recovery when playing media