Small fixes.
Added IntelliJ IDEA to ignore.
Added useful query methods for filtering based on references.
Merge pull request #17 from kaisellgren/master

Fixed some problems with PersistentList