Incorrect assumption that Pk is always called "id". Changed to a more generic method that pulls the actual Pk name

This class is used for lookup tables mostly and as such it works fine, consider adding a check for composite Pk

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>
Merge pull request #42 from wichura/master

Removed assumption that Pk is called 'id'
added defaults for widgets so they can be changed in config.
Merge pull request #1 from damiandennis/widget_default

Widget default