Merge pull request #7 from Dantemss/master

Small code cleanup, moving files from app to lib, shared search routine and handler
4.0.0
alpha
Allow subclass search routines to specify fields to order by from joins